//
//  ICApplicationModel.h
//  ICome
//
//  Created by zhang_rongwu on 16/3/8.
//  Copyright © 2016年 iCom. All rights reserved.
//

#import <Foundation/Foundation.h>
//typedef enum {
//    appStatus_CanSubs = 0, // 可订阅
//    appStatus_AlreadySubs = 1, // 已订阅
//    appStatus_MustSubs = 2, // 强制订阅
//    appStatus_DeleteSubs = 3, // 删除的
//}AppSubsStatus;

@interface ICApplicationModel : NSObject
@property (nonatomic, strong)NSString *appId;
@property (nonatomic, strong)NSString *appName;
@property (nonatomic, strong)NSString * appClassName;
@property (nonatomic, assign)int appClassId;
@property (nonatomic, assign)int appType; //应用类型 1：轻应用 2：原生应用
@property (nonatomic, assign)int subsType; // 关注类型（关注设置） 1: 可选关注 2：默认关注
@property (nonatomic, strong)NSString *lightAppURL; // 轻应用地址



@property (nonatomic, strong)NSString *URL; //ios下载地址
@property (nonatomic, strong)NSString *Scheme;// ios跳入
@property (nonatomic, strong)NSString *webURL; // web端应用地址
@property (nonatomic, assign)NSInteger valid;  // 应用状态 1：启用 0：禁用
@property (nonatomic, assign)NSInteger subs;
@property (nonatomic, strong)NSString *appDesc;  // 轻应用描述
@property (nonatomic, strong)NSString *photoId; // 轻应用图标
@property (nonatomic, assign)NSInteger weight;// 权重，数值越大越靠前

@property (nonatomic, assign)int appvalid;// 1，0 有效无效

@property (nonatomic, strong)NSString *icon;

- (instancetype)initWithDict:(NSDictionary *)dict;

// 获取 ticket
+(void)getJsTicket:(void (^)(BOOL isSuccess, id object))success;

@end




